package com.cjhhv.visual.dao;


import com.cjhhv.visual.model.DashboardThemeModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DashboardThemeDao {

    /**
     * 分页查询主题
     * @param parameter
     * @return
     */
    public List<DashboardThemeModel> queryDashboardThemePageList(DashboardThemeModel parameter);

    /**
     * 查询主题是否存在
     * @param parameter
     * @return
     */
    public int queryDashboardThemeIsExists(DashboardThemeModel parameter);
    /**
     * 查询主题列表
     *
     * @return
     */
    public List<DashboardThemeModel> queryDashboardThemeList();

    /**
     * 添加主题
     * @param parameter
     * @return
     */
    public int saveDashboardTheme(DashboardThemeModel parameter);

    /**
     * 根据id查询主题
     * @param dashboardThemeId
     * @return
     */
    public DashboardThemeModel queryDashboardThemeById(String dashboardThemeId);

    /**
     * 根据id修改主题
     * @param parameter
     * @return
     */
    public int updateDashboardThemeById(DashboardThemeModel parameter);

    /**
     * 根据ids删除主题
     * @param parameter
     * @return
     */
    public int deleteDashboardThemeByIds(DashboardThemeModel parameter);
}
